<template>
  <el-dialog
    :destroy-on-close="false"
    :show-close="false"
    v-model="dialogVisible"
    align-center
    width="574"
  >
    <div class="forward-dialog">
      <img class="close" @click="close" src="~/assets/img/close.png" alt="" />
      <div class="top">
        <img class="logo" src="~/assets/img/share-bbx.png" alt="" />
      </div>
      <div class="content">
        <div class="text">
          【永久免费】至尊宝电商助手，一键搜图，一键搜同款，口令解析等等，全面支持淘宝，拼多多，抖店，快手等平台电脑下载地址:https://zzbtoolcom
          下载后拖到浏览器即可安装，支持360极速，360安全浏览器，谷歌，Edge，QQ，搜狗，2345，搜狗等浏览器
        </div>
        <div class="desc">犀牛百宝箱·用AI赋能全域电商</div>
      </div>
      <div class="footer">
        <el-button class="forward" type="primary">复制并分享</el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script setup>
const dialogVisible = ref(false);
const close = () => {
  dialogVisible.value = false;
};
const show = () => {
  dialogVisible.value = true;
};
defineExpose({
  close,
  show
})
</script>

<style lang="scss" scoped>
.forward-dialog {
  background: linear-gradient(180deg,#32c7aa, #ffffff 100%);
  border-radius: 10px;
  position: relative;
  padding: 20px;
  .close {
    top: 20px;
    right: 20px;
    position: absolute;
    cursor: pointer;
  }
  .top {
    margin-bottom: 20px;
    .logo {
      width: auto;
      height: 38px;
    }
  }
  .content {
    background: #dee8f2;
    border-image: linear-gradient(180deg, #ffffff, rgba(50,199,170,0.50) 100%) 1 1;
    border-radius: 10px;
    padding: 16px 16px 10px 16px;
    .text {
      height: 88px;
      font-size: 16px;
      font-weight: 400;
      text-align: LEFT;
      color: #000000;
      line-height: 19px;
    }
    .desc {
      height: 18px;
      font-size: 13px;
      font-weight: 500;
      text-align: LEFT;
      color: #748595;
      line-height: 15px;
      text-align: center;
      margin: 20px 0 0 0;
    }
  }
  .footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    ::v-deep .el-button {
      width: 140px;
      height: 44px;
      background: #32C7AA;
      border-radius: 5px;
      color: #fff;
      font-size: 16px;
    }
  }
}
</style>
